﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using WindowsFormsApplication3.JobDetailsTableAdapters;
using System.Data.OleDb;
using WindowsFormsApplication3.Properties;

namespace WindowsFormsApplication3
{
    public partial class Form2 : Form
    {
        public Form2()
        {
            InitializeComponent();
            
        }

        private void Form2_Load(object sender, EventArgs e)
        {
            CrystalReport2 report = new CrystalReport2();
            JobDetails details1 = new JobDetails();

            DataTable1TableAdapter adapt = new DataTable1TableAdapter();
            adapt.Connection = new OleDbConnection(Settings.Default.NauferTransactionDemoDBConnectionString);
             adapt.Fill(details1.DataTable1);


             report.SetDataSource(details1);
             report.Refresh();
            crystalReportViewer1.ReportSource = report;
       
        }
    }
}
